<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<title>华阳物流管理平台</title>
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/bootstrap.min.css"/>	
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/public.css"/>
	</head>
	<body class="huayang">
		<header class="clearfix">
			<a class="navbar-brand d-inline logo2" href="#"><img src="<%=request.getContextPath()%>/resources/img/logo.png"></a>
			<a class="navbar-brand d-inline logo3" href="#"><img src="<%=request.getContextPath()%>/resources/img/1.png"></a>
		</header>
		<div class="clearfix">
			
		</div>
        <nav class="navbar navbar-expand-lg navbar-light bg-light">
            <!--<a class="navbar-brand" href="#">华阳物流</a>-->
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
              <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
           	
              <ul class="navbar-nav mr-auto">
              	<div class="container">       	
            	<div class="row clearfix">
              	<li class="nav-item active col-xs-6">
                  <a class="nav-link nav1" href="${ctx }/department/chengCity?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                  <a class="nav-link nav2" href="${ctx }/department/mianCity?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                 <li id="mz" class="nav-item active col-xs-6">
                  <a class="nav-link nav6" href="${ctx }/department/mzCity?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6 current">
                  <a class="nav-link nav3" href="${ctx }/after/showAfter?pageNow=1&&deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                 <a class="nav-link nav4" href="${ctx }/accountlist/selectAccountList?deptid=${deptid}&&rolename=${role.rolename}&deptname=&zhiling=&chexing=&xingming=&jiesuan=&jiashiyuanjs=&fatime1=&fatime2="><span></span></a>
                </li>
                <li class="nav-item active col-xs-6">
                  <a class="nav-link nav5" href="${ctx }/back/guanli?deptid=${deptid}&&rolename=${role.rolename}"><span></span></a>
                </li>
               </div>
              </div>
              </ul>
            <div class="clearfix"></div>
            <ul class="nav justify-content-center fixed-top align-middle clearfix ">
			  <li class="nav-item">
                <img class="user-img rounded-circle" src="<%=request.getContextPath()%>/resources/img/raw_1514434504.jpg"/>  
              </li>
              <li class="nav-item user-info">
                <span>${user.uname}</span>    
                <span>${role.rolename}</span> 
              </li>
              <li class="nav-item pwd-change">
                <a class="nav-link active align-text-bottom" href="${ctx }/tuser/pwdjsp?deptid=${deptid}&&rolename=${role.rolename}">修改密码</a>                
              </li>
              <li class="nav-item exit"> 
              	<a href="${ctx }/back/userLoginOut" onclick="return confirm('您确定要退出系统吗？');" class="nav-link active"><span class="px-3">
					<img src="<%=request.getContextPath()%>/resources/img/exit.png"></span>退出</a>     
              </li>
            </ul>
          </div>       
        </nav>	
        <div class="container-fluid content">
        	<div class="row">
        		
        			<div class="container-fluid pl-4 ">
        				
        				<div class="pt-xl-4 pl-4 py-3 col-12 col-sm-12 col-lg-9 col-xl-10 clearfix">
        					<div class="title text-center float-left">
		                	<a href="${ctx }/after/insertAfter" class="btn btn-block"><span>新增售后</span></a>
		                </div>
		             
		                <form action="${ctx }/after/showAfter" method="post" class="form-inline my-2 my-lg-0 float-right pr-4 form-search">
                          <input name="souafter" id="souafter" class="form-control mr-sm-2" type="search" placeholder="输入搜索内容" aria-label="Search">
                          <button class="btn btn-search my-2 my-sm-0" type="submit"><img src="<%=request.getContextPath()%>/resources/img/search_32px_1187523_easyicon.net.png"/></button>
                        </form>
        				</div>
        				<div class="row pt-xl-4  col-12 col-sm-12 col-lg-9 col-xl-10">
        				   <div class="col-md-12 column table-content table-responsive">
		                	<table class="table text-center table-hover">
		                		<thead>
		                			<tr>
						                <th>
							                ID
						                </th>
						                <th style="min-width: 100px;">
							                                姓名
						                </th>
						                <th>
							                                电话
						                </th>
						                <th style="min-width: 100px;">
							                                地点
						                </th>
						                <th style="min-width: 150px;">
							                                发布时间
						                </th>
						                
						               
					                </tr>
				                </thead>
				                <tbody>
					                <c:forEach var="after" items="${afterList }">
					                <tr>
						                <td>
							                ${after.aid }
						                </td>
						                <td>
							                ${after.aname }
						                </td>
						                <td>
							               ${after.aphone }
						                </td>
						                <td>
							               ${after.asite }
						                </td>
						                <td>
							                <fmt:formatDate value="${after.apubdate }" pattern="yyyy-MM-dd     HH:mm:ss"/>
						                </td>
						                
					                </tr>
					                </c:forEach>
					               
				                </tbody>
			                </table>
		                </div>		 
        				</div>
        				<div class="row pt-xl-4  col-12 col-sm-10 clearfix">
        				<div class="col-md-12 column table-content table-responsive pagination-block">
		                <div class="col-md-4 column col-center-block text-center">
		                	<ul class="pagination">
	                             <li><a href="${ctx }/after/showAfter?pageNow=1">首页</a></li>
	                           <li>
	                            	<c:if test="${page.pageNow >1 && page.pageNow < page.totalPageCount+1 }">
	                            		<a href="${ctx }/after/showAfter?pageNow=${page.pageNow - 1}">上一页</a>
	                            	</c:if>
	                            </li>
	                            <li>
	                            	<c:if test="${page.pageNow >=1 && page.pageNow < page.totalPageCount }">
	                            		<a href="${ctx }/after/showAfter?pageNow=${page.pageNow + 1}">下一页</a>
	                            	</c:if>
	                            </li>
	                            <li><a href="${ctx }/after/showAfter?pageNow=${page.totalPageCount}">末页</a></li>
	                            <li><a>共${page.totalPageCount}页${page.totalCount}条</a></li>
                            </ul>
		                </div>
		                </div>
        				</div>
        			</div>
        		</div>
        	</div> 
        	<!--推送消息-->
        	
		<script src="<%=request.getContextPath()%>/resources/js/jquery.slim.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=request.getContextPath()%>/resources/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
        		<jsp:include page="munetab.jsp" />
        	
	</body>
	<script type="text/javascript"> 
		   window.onload=function(){ 
				var action ='<%=request.getAttribute("result")%>';
				if(action.length!==4)
				{
						alert(action);
				}
			} 
		</script>
	<script type="text/javascript">
		function delaft(){
			if (!confirm("确认要删除？")) {   
            	window.event.returnValue = false;   
       	 	}   
			
		}
	
	</script>
</html>
